package com.message.feignclient;

import com.base.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 小何
 * @Description: TODO
 * @DateTime: 2023/10/26 13:50
 **/
@FeignClient(name = "media-api",value = "media-api", fallbackFactory = MediaClientFactory.class)
public interface MediaClient {

    /**
     * 视频转码
     * @param MD5 文件MD5值
     * @return 提示信息
     */
//    @PostMapping(value = "/media/transcode")
//    public R<String> transcode(@RequestParam("suffix")String suffix, @RequestParam("MD5")String MD5);

    /**
     * 视频转码成功,修改发布记录表中状态为已转码
     * @param publishId 预发布视频Id
     * @return 提示信息
     */
    @PostMapping(value = "/publish/transcodeSuccess")
    public R<String> transcodeSuccess(@RequestParam("publishId")String publishId);
}
